package com.ruoyi.cms.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@TableName("system_menu")
@Data
public class Menu implements Serializable {
    @TableId(value = "id")
    private String id;

    /**
     * 菜单名称
     */
    private String menuName;

    /**
     * 菜单编码
     */
    private String menuCode;

    /**
     * 菜单路径
     */
    private String menuUrl;

    /**
     * 上级菜单
     */
    private String parentId;

    /**
     * 菜单图标
     */
    private String menuIcon;

    /**
     * 排序
     */
    private Integer sort;

    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date updateTime;

    /**
     * 描述
     */
    private String remark;

    @TableField(exist = false)
    private String parentMenuName;
    @TableField(exist = false)
    private Boolean checked = false;
    @TableField(exist = false)
    private List<Menu> children;
}
